class EntrustVo {

  EntrustData? data;

  EntrustVo({this.data});

  EntrustVo.fromJson(Map<String, dynamic> json) {
    data = json['data'] != null ? new EntrustData.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class EntrustData {
  dynamic orderSn;
  int? seckillOrderId;
  dynamic paymentPrice;
  int? paymentType;
  int? payStatus;
  String? outTradeNo;
  int? teamId;
  int? userId;
  int? holderProductId;
  dynamic substituteProductId;
  String? differencePrice;
  String? updatedAt;
  String? createdAt;
  int? id;

  EntrustData(
      {this.orderSn,
      this.seckillOrderId,
      this.paymentPrice,
      this.paymentType,
      this.payStatus,
      this.outTradeNo,
      this.teamId,
      this.userId,
      this.holderProductId,
      this.substituteProductId,
      this.differencePrice,
      this.updatedAt,
      this.createdAt,
      this.id});

  EntrustData.fromJson(Map<String, dynamic> json) {
    orderSn = json['order_sn'];
    seckillOrderId = json['seckill_order_id'];
    paymentPrice = json['payment_price'];
    paymentType = json['payment_type'];
    payStatus = json['pay_status'];
    outTradeNo = json['out_trade_no'];
    teamId = json['team_id'];
    userId = json['user_id'];
    holderProductId = json['holder_product_id'];
    substituteProductId = json['substitute_product_id'];
    differencePrice = json['difference_price'];
    updatedAt = json['updated_at'];
    createdAt = json['created_at'];
    id = json['id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['order_sn'] = this.orderSn;
    data['seckill_order_id'] = this.seckillOrderId;
    data['payment_price'] = this.paymentPrice;
    data['payment_type'] = this.paymentType;
    data['pay_status'] = this.payStatus;
    data['out_trade_no'] = this.outTradeNo;
    data['team_id'] = this.teamId;
    data['user_id'] = this.userId;
    data['holder_product_id'] = this.holderProductId;
    data['substitute_product_id'] = this.substituteProductId;
    data['difference_price'] = this.differencePrice;
    data['updated_at'] = this.updatedAt;
    data['created_at'] = this.createdAt;
    data['id'] = this.id;
    return data;
  }
}
